package com.sumauto.view;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.KeyEvent;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public boolean onKeyUp(int keyCode, KeyEvent event) {
        if (keyCode==KeyEvent.KEYCODE_NUMPAD_0||keyCode==KeyEvent.KEYCODE_0){
            setContentView(R.layout.activity_main);
        }
        return super.onKeyUp(keyCode, event);
    }
}
